﻿<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:cg="http://roblevine.co.uk/Namespaces/ConfigGen/1/0/">
  <configSections>
    <section name="MyCustomConfigSection" type="MyAssembly.ConfigSections.MyCustomConfigSection, MyAssembly" />
  </configSections>
  <appSettings>
    <add key="Environment" value="[%Environment%]" />
  </appSettings>
  <system.web>
    <customErrors cg:applyWhen="$CustomErrorMode != 'Off'" mode="SomeCustomErrorMode" defaultRedirect="GenericError.htm">
      <error statusCode="500" redirect="InternalError.htm" />
    </customErrors>
  </system.web>
  <MyCustomConfigSection>
    <MyService endpoint="http://somebigdomainname.com/SomeEndpoint" authentication="integrated" data="some_long_string_to_make_this_line_long" data2="some_more_long_data" />
  </MyCustomConfigSection>
</configuration>